Default to imprecise window fitting on terminal
authorJustin Burkett <justin@burkett.cc>
Wed, 27 Nov 2019 17:00:57 +0000 (12:00 -0500)
committerJustin Burkett <justin@burkett.cc>
Wed, 27 Nov 2019 17:00:57 +0000 (12:00 -0500)
See #225.

which-key.el

index 88775d4b839994275408ba043d45d8d7dbcba43d..1a0f5c68f652b705636bcacb569403bda8962108 100644 (file)
@@ -341,12 +341,13 @@ a percentage out of the frame's height."
   :group 'which-key
   :type 'integer)
 
-(defcustom which-key-allow-imprecise-window-fit nil
+(defcustom which-key-allow-imprecise-window-fit (not (display-graphic-p))
   "If non-nil allow which-key to use a less intensive method of
 fitting the popup window to the buffer. If you are noticing lag
 when the which-key popup displays turning this on may help.
 
-See https://github.com/justbur/emacs-which-key/issues/130"
+See https://github.com/justbur/emacs-which-key/issues/130
+and https://github.com/justbur/emacs-which-key/issues/225."
   :group 'which-key
   :type 'boolean)